<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix='fmt' %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 


<title>搜索栏</title>
 <div class="searchOutDiv">
 	<a href="forehome"><img class="logo" src="./img/site/logo.gif" id="logo"/></a>
 	<form action="foresearch" method="post">
	 	<div class="searchDiv">
	 		<input type="text" placeholder="时尚男鞋    太阳镜" name="keyword" value="${param.keyword}"/>
	 		<button class="searchButton" type="submit">搜索</button>
	 		<div class="searchBelow">
	 			<c:forEach items="${cs}" var="c" varStatus="st">
					<c:if test="${st.count>=5 and st.count<=8}">
						<span>
							<a href="forecategory?category.id=${c.id}">
								${c.name}
							</a>
							<c:if test="${st.count!=8}">
								<span>|</span>
							</c:if>
						</span>
					</c:if>
				</c:forEach>
	 		</div>
	 	</div>
 	</form>
 </div>
 
</html>